"""django_budget URL Configuration

The `urlpatterns` list routes URLs to place. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function place
    1. Add an import:  from my_app import place
    2. Add a URL to urlpatterns:  path('', place.home, name='home')
Class-based place
    1. Add an import:  from other_app.place import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from apscheduler.schedulers.background import BackgroundScheduler
# BackgroundScheduler
from datetime import datetime


# def tick():
#
#
#     print('Tick! The time is: %s' % datetime.now())
#
# scheduler = BackgroundScheduler()
# scheduler.add_job(tick, 'interval', seconds=7)
# scheduler.start()

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/', include("constr_budgets.urls"))
]
